import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import {
  DictionaryModelProvider,
  DictionaryTypeModelProvider
} from '@server/models';

import { injectModules } from '@server/auth';
import { DatabaseModule } from '@server/modules/database/module';

import Controller from './controller';
import Service from './service';

@Module({
  imports: [...injectModules, ConfigModule, DatabaseModule],
  controllers: [Controller],
  providers: [
    DictionaryModelProvider,
    DictionaryTypeModelProvider,
    Service
  ],
})
export default class DictionaryModule {}
